<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../org/angular.min.js"></script>
</head>
<body>
<div ng-app="hd" ng-controller="ctrl">
    性别：
    <select ng-model="user.sex">
        <option value="">选择性别</option>
        <option ng-value="1" ng-selected="user.sex==1">男</option>
        <option ng-value="2" ng-selected="user.sex==2">女</option>
    </select><br/>
    男：<input type="radio" ng-model="user.sex" ng-value="1">
    女：<input type="radio" ng-model="user.sex" ng-value="2">
</div>


<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {
        $scope.user = {sex:2};
    }]);
</script>

</body>
</html>

